package com.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色权限关系
 *
 * @TableName sys_role_right
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_role_right")
public class RoleRight implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long rfId;

    private Long rfRoleId;

    private String rfRightCode;

    public RoleRight(Long rfRoleId, String rfRightCode) {
        this.rfRoleId = rfRoleId;
        this.rfRightCode = rfRightCode;
    }

}